<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script type="text/javascript">
            //按下tab键获得焦点的顺序
            function checkTab(x)
            {
                alert(x.tabIndex)
            }
        </script>
    </head>
    <body>
        <form>
            <textarea id="txt1" tabindex="4" onclick="checkTab(this)">
            Hello world....This is a text area
            </textarea>
            <input id="txt2" type="text" tabindex="3" onclick="checkTab(this)">
            <input id="txt3" type="text" tabindex="2" onclick="checkTab(this)">
        </form>
    </body>
</html>
